﻿using System;
using System.Net;
using SCG.SolarVengeanceEngine.BrainInfo;

namespace SCG.SolarVengeanceEngine
{
    //Pulsars
    public class Pulsar : SVMapObject
    {
        //constructor
        public Pulsar(SVGame game)
            : base(game)
        {
            Game.Pulsars.Add(this);
        }

        //removal
        public override void Remove()
        {
            base.Remove();
            Game.Pulsars.Remove(this);
        }

        //private members
        private PulsarInfo _info = null;

        //access the Info object for brains
        internal PulsarInfo Info
        {
            get
            {
                if (_info == null)
                    _info = new PulsarInfo(this);
                return _info;
            }
        }
    }
}
